<div id="search_form">
  <% remote_form_for :word, Word.new,
                      :url => define_ajax_dictionary_path(dictionary) do |f| %>
    <div>
      <%= f.label :text %>
      <%= text_field_with_auto_complete :word, :text, {:size => 15}, :indicator => 'search_form_progress_bar' %>
    </div>
    <div>
      <%= f.submit 'Define' %>      
      <span id="search_form_progress_bar" style="display:none;">
        <%= image_tag('progress_bar.gif', :border => 0, :width => 120) %>
      </span>
    </div>
  <% end %>
</div>